package net.grzechocinski.wordcounter.comparators;

import net.grzechocinski.wordcounter.KMP.WordObject;

import java.util.Comparator;

/**
 * @author Mateusz
 * @since 2010-05-08
 */
public class AloneComparator implements Comparator<WordObject> {

	public int compare(WordObject o1, WordObject o2) {
		return o2.getAloneCounter() - o1.getAloneCounter();
	}
}